package com.finance.system.user.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.finance.system.user.entity.UserExtendEntity;
import com.finance.system.user.mapper.UserExtendMapper;
import com.finance.system.user.service.IUserExtendService;
import com.finance.system.support.BaseServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author whdong
 * @since 2019-12-24
 */
@Service
public class UserExtendServiceImpl extends BaseServiceImpl<UserExtendMapper, UserExtendEntity> implements IUserExtendService {

    @Override
    public UserExtendEntity getByUserId(Long userId) {
        QueryWrapper queryWrapper = new QueryWrapper<UserExtendEntity>();
        queryWrapper.eq("user_id",userId);
        return baseMapper.selectOne(queryWrapper);
    }
}
